package operation;

import book.Book;
import book.BookList;

public class DisplayOperation implements IOperation{
    public void work(BookList bookList){
        System.out.println("打印图书");
        int count = bookList.getCount();
        for (int i=0; i<count; i++){
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
